package common.route;
import com.jfinal.config.Routes;

import common.inter.ApiSignInter;
import common.inter.WxUserInter;
import controller.api.ApiCalibrationController;
import controller.api.ApiCompanyController;
import controller.api.ApiCompareCheckController;
import controller.api.ApiComsumablesRepalceController;
import controller.api.ApiDaliyItemsController;
import controller.api.ApiDaliyRecordController;
import controller.api.ApiGasReplaceController;
import controller.api.ApiLiquidRecycleController;
import controller.api.ApiMaintainRecordsController;
import controller.api.ApiModifyRecordController;
import controller.api.ApiMonitoringFacilitiesController;
import controller.api.ApiMonitoringFactorController;
import controller.api.ApiMonitoringStationController;
import controller.api.ApiQiniuController;
import controller.api.ApiQuipmentController;
import controller.api.ApiReagentRenewalController;
import controller.api.ApiRepaireController;
import controller.api.ApiRunRecordsController;
import controller.api.ApiSampleRecordController;
import controller.api.ApiServicerCompanyController;
import controller.api.ApiServicerController;
import controller.api.ApiStaffController;
import controller.api.ApiStationController;
import controller.api.ApiSysetemParamsController;
import controller.api.ApiTestController;
import controller.api.ApiWaterCollectorController;
import controller.api.ApiWxuserController;

/**
 * 用户端API
 */
public class ApiRoutes extends Routes {

    @Override
    public void config() {
        addInterceptor(new ApiSignInter());
        addInterceptor(new WxUserInter());
        add("/api/test" , ApiTestController.class);
		add("/api/company" , ApiCompanyController.class);
		add("/api/servicer" , ApiServicerController.class);
		add("/api/wxuser" , ApiWxuserController.class);
		add("/api/servicerCompany" , ApiServicerCompanyController.class);
		add("/api/qiniu" , ApiQiniuController.class);
		add("/api/staff" , ApiStaffController.class);
    
		add("/api/station" , ApiStationController.class);
    
		add("/api/compareCheck" , ApiCompareCheckController.class);
    
		add("/api/calibration" , ApiCalibrationController.class);
    
		add("/api/gasReplace" , ApiGasReplaceController.class);
    
		add("/api/comsumablesRepalce" , ApiComsumablesRepalceController.class);
    
		add("/api/repaire" , ApiRepaireController.class);
    
		add("/api/daliyItems" , ApiDaliyItemsController.class);
    
		add("/api/daliyRecord" , ApiDaliyRecordController.class);
    
		add("/api/sampleRecord" , ApiSampleRecordController.class);
    
		add("/api/liquidRecycle" , ApiLiquidRecycleController.class);
    
		add("/api/reagentRenewal" , ApiReagentRenewalController.class);
    
		add("/api/modifyRecord" , ApiModifyRecordController.class);
    
		add("/api/maintainRecords" , ApiMaintainRecordsController.class);
    
		add("/api/quipment" , ApiQuipmentController.class);
    
		add("/api/waterCollector" , ApiWaterCollectorController.class);
    
		add("/api/monitoringFacilities" , ApiMonitoringFacilitiesController.class);
    
		add("/api/monitoringStation" , ApiMonitoringStationController.class);
    
		add("/api/monitoringFactor" , ApiMonitoringFactorController.class);
    
		add("/api/sysetemParams" , ApiSysetemParamsController.class);
    
		add("/api/runRecords" , ApiRunRecordsController.class);
    }
}